<template>
  <div style="line-height: 34px !important;">
    <el-switch
      v-model="params.data.ifUse === '1' ? true : false"
      disabled>
    </el-switch>
    <el-button type="text" @click="changeTurn">{{ params.data.ifUse === '1' ? '关闭' : '启用'}}</el-button>
  </div>
</template>
<script>
import Vue from 'vue'
export default Vue.extend({
  // props: ["flag"],
  data () {
    return {
      wahaha: true
    }
  },
  methods: {
    changeTurn () {
      this.params.context.componentParent.changeTurn(this.params.data)
    }
  }
})
</script>
